package net.hctek.AnnouncerStation.dao.impl;


import java.util.List;

import net.hctek.AnnouncerStation.bean.Counts;
import net.hctek.AnnouncerStation.dao.CountsDaoI;
import net.hctek.AnnouncerStation.dao.base.impl.HibernateDaoImpl;

public class CountsDao  extends HibernateDaoImpl implements CountsDaoI {

	public List<Counts> getAll(String CountsName) {
		String hql = "from Counts c where c.CountsName ='"+CountsName+"'";
		return find(hql);
	}

	public List<Long> getQrcodeCount(String CountsName) {
		String hql="select c.CountsSum from Counts c where c.CountsName ='"+CountsName+"'";
		return find(hql);
	}

	
}
